{extend name="public/base" /}
{block name="title"}首页{/block}
{block name="body"}
<h1 class="ui center aligned icon header"><i class="circular users icon"></i> 甄动动的Blog </h1>
<div class="ui container">
    <div class="ui secondary pointing menu">
        <a class="active item">博文列表</a>
    </div>
    <div class="ui relaxed animated huge selection list">
        {foreach $list as $vo}
        <div class="item" style="margin-top: 10px;">
            <i class="icon">
                {if date("d") == date("d 日",$vo['create_time'])}
                <div class="ui primary big button">{:date("d 日",$vo['create_time'])}</div>
                {else}
                <div class="ui  big button">{:date("d 日",$vo['create_time'])}</div>
                {/if}
            </i>
            <!--<div class="left floated content">
                <div class="ui button">Add</div>
            </div>-->
            <div class="content">
                <a class="header" href="{:url('/article/'.$vo['id'])}"><h2>{$vo['title']}</h2></a>
                <div class="description">{$vo['content']}</div>
            </div>
        </div>
        {/foreach}
        {$list->render()}
    </div>
</div>

{/block}
{block name="footer"}{/block}